/*******************************************************************************
 * Size: 10 px
 * Bpp: 4
 * Opts: --bpp 4 --size 10 --no-compress --font 微软雅黑Bbold.ttf --symbols  日出日落月出月落0123456789:眠动学作食· --format lvgl -o lv_font_yahei_bold_10.c
 ******************************************************************************/
#define LV_LVGL_H_INCLUDE_SIMPLE
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif

#ifndef LV_FONT_YAHEI_BOLD_10
#define LV_FONT_YAHEI_BOLD_10 1
#endif

#if LV_FONT_YAHEI_BOLD_10

/*-----------------
 *    BITMAPS
 *----------------*/

/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
    /* U+0020 " " */

    /* U+0030 "0" */
    0x5, 0xee, 0x80, 0x1f, 0xb8, 0xf5, 0x7f, 0x20,
    0xfa, 0x9f, 0x0, 0xdc, 0x9f, 0x0, 0xdb, 0x7f,
    0x20, 0xf9, 0x2f, 0xa8, 0xf4, 0x6, 0xef, 0x80,

    /* U+0031 "1" */
    0x0, 0x3, 0x0, 0x1c, 0xff, 0x0, 0x1a, 0xbf,
    0x0, 0x0, 0x8f, 0x0, 0x0, 0x8f, 0x0, 0x0,
    0x8f, 0x0, 0x0, 0x8f, 0x0, 0x5, 0xbf, 0x63,
    0x1f, 0xff, 0xfa,

    /* U+0032 "2" */
    0x9, 0xef, 0xa0, 0x1c, 0x79, 0xf6, 0x0, 0x1,
    0xf8, 0x0, 0x6, 0xf3, 0x0, 0x4f, 0x80, 0x4,
    0xf8, 0x0, 0x3f, 0xd7, 0x73, 0x6f, 0xff, 0xf8,

    /* U+0033 "3" */
    0xb, 0xfe, 0x80, 0x7, 0x5a, 0xf3, 0x0, 0x18,
    0xf2, 0x7, 0xff, 0x60, 0x1, 0x4a, 0xf3, 0x0,
    0x1, 0xf8, 0x38, 0x5a, 0xf4, 0x2d, 0xfe, 0x70,

    /* U+0034 "4" */
    0x0, 0xe, 0xf0, 0x0, 0x8f, 0xf0, 0x2, 0xf9,
    0xf0, 0xc, 0x77, 0xf0, 0x6d, 0x7, 0xf0, 0xcf,
    0xff, 0xfe, 0x23, 0x39, 0xf2, 0x0, 0x7, 0xf0,

    /* U+0035 "5" */
    0xe, 0xff, 0xf3, 0xe, 0xa6, 0x61, 0xe, 0x70,
    0x0, 0xe, 0xff, 0xa0, 0x4, 0x49, 0xf6, 0x0,
    0x1, 0xf7, 0x18, 0x5a, 0xf3, 0x1d, 0xfd, 0x60,

    /* U+0036 "6" */
    0x1, 0xaf, 0xf3, 0xb, 0xf7, 0x62, 0x2f, 0x60,
    0x0, 0x5f, 0xaf, 0xd2, 0x7f, 0x95, 0xfa, 0x5f,
    0x30, 0xcc, 0x1f, 0xb6, 0xf8, 0x4, 0xdf, 0xa0,

    /* U+0037 "7" */
    0x8f, 0xff, 0xfb, 0x36, 0x67, 0xf7, 0x0, 0x6,
    0xf1, 0x0, 0xc, 0xb0, 0x0, 0x3f, 0x50, 0x0,
    0xae, 0x0, 0x1, 0xf9, 0x0, 0x7, 0xf3, 0x0,

    /* U+0038 "8" */
    0x7, 0xef, 0xa0, 0x3f, 0x96, 0xf7, 0x3f, 0x52,
    0xf6, 0x8, 0xfe, 0xa0, 0x1d, 0x98, 0xe3, 0x7f,
    0x0, 0xca, 0x6f, 0x75, 0xf9, 0x9, 0xee, 0xa1,

    /* U+0039 "9" */
    0x7, 0xee, 0x70, 0x4f, 0x99, 0xf3, 0x8f, 0x0,
    0xf8, 0x7f, 0x43, 0xfa, 0x1d, 0xfe, 0xf9, 0x0,
    0x21, 0xf6, 0x16, 0x5c, 0xe0, 0x1e, 0xfc, 0x30,

    /* U+003A ":" */
    0x5f, 0x33, 0xb2, 0x0, 0x0, 0x0, 0x3b, 0x25,
    0xe3,

    /* U+00B7 "·" */
    0x3b, 0x25, 0xe3,

    /* U+4F5C "作" */
    0x0, 0x41, 0x15, 0x0, 0x0, 0x0, 0x1f, 0x67,
    0xe0, 0x0, 0x0, 0x6, 0xf1, 0xdf, 0xff, 0xff,
    0x10, 0xde, 0x5f, 0xbf, 0x55, 0x50, 0x5f, 0xec,
    0xa7, 0xf4, 0x42, 0x8, 0xfe, 0x52, 0x7f, 0xff,
    0x80, 0x48, 0xe0, 0x7, 0xe0, 0x0, 0x0, 0x7e,
    0x0, 0x7f, 0xff, 0xc0, 0x7, 0xe0, 0x7, 0xf4,
    0x43, 0x0, 0x7e, 0x0, 0x7e, 0x0, 0x0,

    /* U+51FA "出" */
    0x6, 0x20, 0xe8, 0x2, 0x60, 0xf, 0x50, 0xe8,
    0x6, 0xf0, 0xf, 0x50, 0xe8, 0x6, 0xf0, 0xf,
    0xff, 0xff, 0xff, 0xf0, 0x7, 0x55, 0xfa, 0x55,
    0x70, 0x5f, 0x0, 0xe8, 0x0, 0xf5, 0x5f, 0x0,
    0xe8, 0x0, 0xf5, 0x5f, 0xcc, 0xfe, 0xcc, 0xf5,
    0x28, 0x88, 0x88, 0x89, 0xf5,

    /* U+52A8 "动" */
    0x36, 0x66, 0x18, 0xc0, 0x0, 0x6d, 0xdd, 0x7b,
    0xd7, 0x72, 0x22, 0x22, 0x7d, 0xea, 0xf4, 0xef,
    0xff, 0x99, 0xb0, 0xf4, 0x1d, 0xa6, 0x1a, 0xa0,
    0xf4, 0x2f, 0x5f, 0x2c, 0x90, 0xf3, 0x9e, 0x4d,
    0xaf, 0x61, 0xf3, 0xbf, 0xed, 0xff, 0x68, 0xf2,
    0x10, 0x0, 0xd6, 0x8f, 0xc0, 0x0, 0x0, 0x0,
    0x0, 0x0,

    /* U+5B66 "学" */
    0x0, 0x40, 0x44, 0x2, 0x10, 0x4, 0xf4, 0x9e,
    0xc, 0xd0, 0x4c, 0xfd, 0xdf, 0xdf, 0xe9, 0x5f,
    0x66, 0x66, 0x66, 0xcb, 0x4d, 0x7e, 0xee, 0xee,
    0x89, 0x0, 0x24, 0x48, 0xfa, 0x0, 0x24, 0x44,
    0x6f, 0xc4, 0x43, 0x8f, 0xff, 0xff, 0xff, 0xfe,
    0x0, 0x14, 0x8f, 0x20, 0x0, 0x0, 0x1f, 0xfc,
    0x0, 0x0,

    /* U+65E5 "日" */
    0xef, 0xff, 0xff, 0xfe, 0xeb, 0x66, 0x66, 0xbe,
    0xe9, 0x0, 0x0, 0x9e, 0xeb, 0x55, 0x55, 0xbe,
    0xef, 0xff, 0xff, 0xfe, 0xe9, 0x0, 0x0, 0x9e,
    0xe9, 0x0, 0x0, 0x9e, 0xef, 0xff, 0xff, 0xfe,
    0xec, 0x77, 0x77, 0xce,

    /* U+6708 "月" */
    0x5, 0xff, 0xff, 0xff, 0xe0, 0x5f, 0x65, 0x55,
    0xae, 0x5, 0xf7, 0x55, 0x5b, 0xe0, 0x5f, 0xff,
    0xff, 0xfe, 0x5, 0xf2, 0x0, 0x8, 0xe0, 0x6f,
    0xff, 0xff, 0xfe, 0xa, 0xf5, 0x55, 0x5b, 0xe3,
    0xfb, 0x0, 0x66, 0xde, 0x3d, 0x30, 0xb, 0xff,
    0x70, 0x0, 0x0, 0x0, 0x0,

    /* U+7720 "眠" */
    0x4f, 0xfa, 0xdf, 0xff, 0xf8, 0x4d, 0x6a, 0xd7,
    0x22, 0xa8, 0x4f, 0xea, 0xde, 0xee, 0xf8, 0x4d,
    0x7a, 0xd8, 0x7f, 0x42, 0x4d, 0x6a, 0xd8, 0x6f,
    0x43, 0x4f, 0xea, 0xde, 0xef, 0xec, 0x4d, 0x6a,
    0xd6, 0x2f, 0x27, 0x4f, 0xfa, 0xdc, 0xae, 0xcc,
    0x3c, 0x58, 0xdb, 0x46, 0xf6, 0x0, 0x0, 0x0,
    0x0, 0x0,

    /* U+843D "落" */
    0x25, 0x6f, 0x85, 0xdb, 0x55, 0x4, 0xfc, 0xfd,
    0xce, 0xdb, 0xa0, 0xc, 0xd7, 0xdf, 0xff, 0xe2,
    0x2, 0x73, 0xbf, 0xb4, 0xdb, 0x0, 0x4f, 0x66,
    0x4f, 0xfe, 0x40, 0x0, 0x33, 0xdf, 0xa6, 0xbf,
    0xe0, 0xa, 0x99, 0xff, 0xff, 0xf4, 0x1, 0xf4,
    0x6c, 0x11, 0x3f, 0x10, 0x7d, 0x6, 0xff, 0xff,
    0xf1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,

    /* U+98DF "食" */
    0x0, 0x4, 0xef, 0x50, 0x0, 0x4, 0xbd, 0x97,
    0xcc, 0x61, 0x8f, 0xfd, 0xef, 0xdf, 0xfa, 0x6,
    0xf7, 0x77, 0x7f, 0x51, 0x5, 0xf9, 0x99, 0x9f,
    0x50, 0x5, 0xfd, 0xdd, 0xdf, 0x50, 0x5, 0xe4,
    0xe9, 0x7e, 0xc0, 0x5, 0xf7, 0xec, 0xfe, 0x50,
    0x6, 0xfc, 0x80, 0x3a, 0xf1, 0x0, 0x10, 0x0,
    0x0, 0x0
};


/*---------------------
 *  GLYPH DESCRIPTION
 *--------------------*/

static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
    {.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
    {.bitmap_index = 0, .adv_w = 48, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 0, .adv_w = 99, .box_w = 6, .box_h = 8, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 24, .adv_w = 99, .box_w = 6, .box_h = 9, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 51, .adv_w = 99, .box_w = 6, .box_h = 8, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 75, .adv_w = 99, .box_w = 6, .box_h = 8, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 99, .adv_w = 99, .box_w = 6, .box_h = 8, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 123, .adv_w = 99, .box_w = 6, .box_h = 8, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 147, .adv_w = 99, .box_w = 6, .box_h = 8, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 171, .adv_w = 99, .box_w = 6, .box_h = 8, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 195, .adv_w = 99, .box_w = 6, .box_h = 8, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 219, .adv_w = 99, .box_w = 6, .box_h = 8, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 243, .adv_w = 46, .box_w = 3, .box_h = 6, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 252, .adv_w = 46, .box_w = 3, .box_h = 2, .ofs_x = 0, .ofs_y = 3},
    {.bitmap_index = 255, .adv_w = 160, .box_w = 11, .box_h = 10, .ofs_x = 0, .ofs_y = -1},
    {.bitmap_index = 310, .adv_w = 160, .box_w = 10, .box_h = 9, .ofs_x = 0, .ofs_y = -1},
    {.bitmap_index = 355, .adv_w = 160, .box_w = 10, .box_h = 10, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 405, .adv_w = 160, .box_w = 10, .box_h = 10, .ofs_x = 0, .ofs_y = -1},
    {.bitmap_index = 455, .adv_w = 160, .box_w = 8, .box_h = 9, .ofs_x = 1, .ofs_y = -1},
    {.bitmap_index = 491, .adv_w = 160, .box_w = 9, .box_h = 10, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 536, .adv_w = 160, .box_w = 10, .box_h = 10, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 586, .adv_w = 160, .box_w = 11, .box_h = 10, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 641, .adv_w = 160, .box_w = 10, .box_h = 10, .ofs_x = 0, .ofs_y = -2}
};

/*---------------------
 *  CHARACTER MAPPING
 *--------------------*/

static const uint16_t unicode_list_0[] = {
    0x0, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16,
    0x17, 0x18, 0x19, 0x1a, 0x97, 0x4f3c, 0x51da, 0x5288,
    0x5b46, 0x65c5, 0x66e8, 0x7700, 0x841d, 0x98bf
};

/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
    {
        .range_start = 32, .range_length = 39104, .glyph_id_start = 1,
        .unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 22, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
    }
};



/*--------------------
 *  ALL CUSTOM DATA
 *--------------------*/

#if LVGL_VERSION_MAJOR == 8
/*Store all the custom data of the font*/
static  lv_font_fmt_txt_glyph_cache_t cache;
#endif

#if LVGL_VERSION_MAJOR >= 8
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
    .glyph_bitmap = glyph_bitmap,
    .glyph_dsc = glyph_dsc,
    .cmaps = cmaps,
    .kern_dsc = NULL,
    .kern_scale = 0,
    .cmap_num = 1,
    .bpp = 4,
    .kern_classes = 0,
    .bitmap_format = 0,
#if LVGL_VERSION_MAJOR == 8
    .cache = &cache
#endif
};



/*-----------------
 *  PUBLIC FONT
 *----------------*/

/*Initialize a public general font descriptor*/
#if LVGL_VERSION_MAJOR >= 8
const lv_font_t lv_font_yahei_bold_10 = {
#else
lv_font_t lv_font_yahei_bold_10 = {
#endif
    .get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt,    /*Function pointer to get glyph's data*/
    .get_glyph_bitmap = lv_font_get_bitmap_fmt_txt,    /*Function pointer to get glyph's bitmap*/
    .line_height = 11,          /*The maximum line height required by the font*/
    .base_line = 2,             /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
    .subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
    .underline_position = -1,
    .underline_thickness = 1,
#endif
    .dsc = &font_dsc,          /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9
    .fallback = NULL,
#endif
    .user_data = NULL,
};



#endif /*#if LV_FONT_YAHEI_BOLD_10*/

